<?php

namespace app\admin\validate\fp;

use app\common\enum\fp\PostAuditEnum;
use think\Validate;

class PostAudit extends Validate
{
    protected $failException = true;

    /**
     * 验证规则
     */
    protected $rule = [
    ];

    /**
     * 提示消息
     */
    protected $message = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [
            'id' => 'require|integer|gt:0',
            'status' => 'require|enum:' . PostAuditEnum::class,
            'audit_reason' => 'require|max:255',
            'video_cover_url' => 'require',
        ],
        'delete' => [
            'id' => 'require|array',
        ],
        'audit' => [
            'id' => 'require|integer|gt:0',
            'status' => 'require|enum:' . PostAuditEnum::class,
        ],
    ];

}
